<template>
    <div>
        <!-- 面包屑 -->
        <el-bread></el-bread>
        <!-- 列表 -->
        <v-list @edit="edit"></v-list>
        <!-- 弹框 -->
        <v-dialog :dialogInfo="dialogInfo" @cancel="cancel" ref='diaInfo'></v-dialog>
    </div>
</template>

<script>
import vList from './list.vue'
import vDialog from './dialog.vue'
export default {
    data() {
        return {
            dialogInfo: {
                isShow: false,//用于控制子组件弹框的显示隐藏
                isAdd: true,//是否是添加
            }
        };
    },
    components: {
        vList,
        vDialog
    },
    methods: {
        edit(e) {
            this.dialogInfo.isShow = true;
            this.dialogInfo.isAdd = false;
            this.$refs.diaInfo.lookup(e)
        },
        cancel(e) {
            this.dialogInfo.isShow = e;
        }
    }
};
</script>

<style  lang="" scoped>

</style>
